package com.x.Part7_printDemo;

/**
 * ClassName: Print
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2023/9/17 17:16
 */

public class Print {

    //打印矩形并返回矩形面积
    public int method(int m, int n){
        for(int i = 0; i < m; i++){
            for(int j = 0; j < n; j++){
                System.out.print('*');
            }
            System.out.println();
        }
        return m*n;
    }
}
